package com.techsoft;

import java.util.HashMap;

public class MetaData extends HashMap<String, Object> {
	private static final long serialVersionUID = 596068406277221353L;

	public MetaData() {
	}

	public String getDtypename() {	
		Object tempdata = this.get("DTYPENAME");
		if (tempdata != null) {
			return (String) tempdata;
		}
		
		return null;
	}

	public void setDtypename(String dtypename) {
		this.put("DTYPENAME", dtypename);
	}

	public Integer getDtype() {		
		Object tempdata = this.get("DTYPE");
		if (tempdata != null) {
			return (Integer) tempdata;
		}
		
		return 0;		
	}

	public void setDtype(Integer dtype) {
		this.put("DTYPE", dtype);
	}

	public Integer getPrecision() {		
		Object tempdata = this.get("PRECISION");
		if (tempdata != null) {
			return (Integer) tempdata;
		}
		
		return 0;				
	}

	public void setPrecision(Integer precision) {
		this.put("PRECISION", precision);
	}

	public Integer getScale() {
		Object tempdata = this.get("SCALE");
		if (tempdata != null) {
			return (Integer) tempdata;
		}
		
		return 0;			
	}

	public void setScale(Integer scale) {
		this.put("SCALE", scale);
	}

	public String getFname() {
		Object tempdata = this.get("FNAME");
		if (tempdata != null) {
			return (String) tempdata;
		}
		
		return null;		
	}

	public void setFname(String fname) {
		this.put("FNAME", fname);
	}

	public String getNullable() {
		Object tempdata = this.get("NULLABLE");
		if (tempdata != null) {
			return (String) tempdata;
		}
		
		return null;
	}

	public void setNullable(String nullable) {
		this.put("NULLABLE", nullable);
	}

	public Integer getMaxlen() {
		Object tempdata = this.get("MAXLEN");
		if (tempdata != null) {
			return (Integer) tempdata;
		}
		
		return 0;
	}

	public void setMaxlen(Integer maxlen) {
		this.put("MAXLEN", maxlen);
	}
}
